<%@ include file="/WEB-INF/jsp/include.jsp" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<html>
  <head>  
    <title>
      <fmt:message key="title"/>
    </title>  
    <style>    .error { color: red; }   
    </style>   
  </head>
  <body>
<h1><fmt:message key="priceincrease.heading"/></h1>
 
<form:form method="post" commandName="registrazione">
    <table width="95%" bgcolor="f8f8ff" border="0" cellspacing="0" cellpadding="5">
    <tr>
      <td align="right" width="20%">Nome Prodotto:</td>
        <td width="20%">
          <form:input path="title"/>
        </td>
        <td width="60%">
          <form:errors path="title" cssClass="error"/>
        </td>
    </tr>
    <tr>
      <td align="right" width="20%">Marca prodotto:</td>
        <td width="20%">
          <form:input path="marca"/>
        </td>
        <td width="60%">
          <form:errors path="marca" cssClass="error"/>
        </td>
    </tr>
    <tr>
      <td align="right" width="20%">Prezzo:</td>
        <td width="20%">
          <form:input path="prezzo"/>
        </td>
        <td width="60%">
          <form:errors path="prezzo" cssClass="error"/>
        </td>
    </tr>
    <tr>
      <td align="right" width="20%">Quantita:</td>
        <td width="20%">
          <form:input path="quantita"/>
        </td>
        <td width="60%">
          <form:errors path="quantita" cssClass="error"/>
        </td>
    </tr>
   </table>   
  <br>
  <input type="submit" align="center" value="Inserisci">
</form:form>
  
  <a href="<c:url value="hello.htm"/>">Home</a>
</body>
</html>